

#include <Python.h>
#include <numpy/arrayobject.h>
#include <cassert>
#include <iostream>
#include <cstdlib>
#include <string>
#include "Video.h"

using namespace std;




int main(int argc, char *argv[]) {

	char * path = "";
	if (argc ==1){
		path = argv[1];
	} 
	Video video = *(new Video ((long)200, (long)200));
	video.pintar ("00ff00");
	PyRun_SimpleString ("time.sleep(1)");
	video.pintar ("0000ff");
	PyRun_SimpleString ("time.sleep(1)");
	int* matriz = video.matriz();
	int pos[2];
	video.waitForClick(pos);
	for(int x = 0; x<(40000);x++){
		matriz[x] = 0xff6000ff;
	}
	cout << "posicion donde usted hizo click:";
	cout << "(" << pos[0] << "\\" << pos[1] << ")"<< endl;
	video.refresh();
	PyRun_SimpleString ("time.sleep(1)");
	


	return 0;
	
}




